import request from '@/utils/request'

// 查询研发历史列表
export function listResearchHistory(query) {
  return request({
    url: '/system/researchHistory/list',
    method: 'get',
    params: query
  })
}

// 查询研发历史详细
export function getResearchHistory(id) {
  return request({
    url: '/system/researchHistory/' + id,
    method: 'get'
  })
}

// 新增研发历史
export function addResearchHistory(data) {
  return request({
    url: '/system/researchHistory',
    method: 'post',
    data: data
  })
}

// 修改研发历史
export function updateResearchHistory(data) {
  return request({
    url: '/system/researchHistory',
    method: 'put',
    data: data
  })
}

// 删除研发历史
export function delResearchHistory(id) {
  return request({
    url: '/system/researchHistory/' + id,
    method: 'delete'
  })
}

// 导出研发历史
export function exportResearchHistory(query) {
  return request({
    url: '/system/researchHistory/export',
    method: 'get',
    params: query
  })
}
